﻿<dx:DXWindow x:Class="Oddo.Concept.Crm.Common.Presentation.Views.AuthenticationView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
             xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
             xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
             xmlns:viewModels="clr-namespace:Oddo.Concept.Crm.Common.Presentation.ViewModels"
             xmlns:resources="clr-namespace:Oddo.Concept.Crm.Common.Presentation.Resources"
             mc:Ignorable="d"
             d:DataContext="{d:DesignInstance viewModels:AuthenticationViewModel}" 
             d:DesignHeight="165" d:DesignWidth="343"
             WindowStartupLocation="CenterScreen" 
             ResizeMode="NoResize"
             Title="{x:Static resources:Labels.label_authentication}"
             MinWidth="345"
             MinHeight="165"
             SizeToContent="WidthAndHeight" 
            SmallIcon="{DynamicResource IconKeys}" 
            Icon="{DynamicResource IconKeys}">
   
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="1*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <dxlc:LayoutControl Orientation="Vertical" Grid.Row="0">
            <dxlc:LayoutItem Label="{x:Static resources:Labels.label_login}" IsRequired="True">
                <dxe:TextEdit EditValue="{Binding UserName}"/>
            </dxlc:LayoutItem>
            <dxlc:LayoutItem Label="{x:Static resources:Labels.label_password}" IsRequired="True">
                <dxe:PasswordBoxEdit EditValue="{Binding Password}" ShowCapsLockWarningToolTip="True" />
            </dxlc:LayoutItem>
        </dxlc:LayoutControl>
        <dx:UniformStackPanel Grid.Row="1" MinHeight="28px" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" FlowDirection="RightToLeft" ChildSpacing="2">
            <Button Content="{x:Static resources:Labels.label_ok}" MinWidth="80px" Command="{Binding ValidateCommand}" IsDefault="True"></Button>
            <Button Content="{x:Static resources:Labels.label_cancel}" IsCancel="True"></Button>
        </dx:UniformStackPanel>
    </Grid>
</dx:DXWindow>
